// import com.alibaba.druid.sql.ast.SQLLimit;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

#include "MySqlShowErrorsStatement.h"
#include "../../../../ast/SQLLimit.h"
#include "../../visitor/MySqlASTVisitor.h"

BOOL_ptr MySqlShowErrorsStatement::isCount()
{
  return count;
}

void MySqlShowErrorsStatement::setCount(BOOL_ptr count)
{
  this->count = count;
}

SQLLimit_ptr MySqlShowErrorsStatement::getLimit()
{
  return limit;
}

void MySqlShowErrorsStatement::setLimit(SQLLimit_ptr limit)
{
  this->limit = limit;
}

void MySqlShowErrorsStatement::accept0(MySqlASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(MySqlShowErrorsStatement)))
  {
    acceptChild(visitor, limit);
  }
  visitor->endVisit(SharedObject(MySqlShowErrorsStatement));
}
